import React from 'react';

export default class Constructor extends React.Component {
  state = {
    a: 123,
  };

  onClick = () => {
    console.log(`typeof this`, typeof this);
    console.log(this.state);
  };

  render() {
    const { a } = this.state;
    return <div onClick={this.onClick}>Constructor {a}</div>;
  }
}
